package com.jingdong.service.productType.impl;

import com.jingdong.dao.productType.ProductTypeTwoDao;
import com.jingdong.model.Product_type_two;
import com.jingdong.service.productType.ProductTypeTwoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ProductTypeTwoServiceImpl implements ProductTypeTwoService {
    @Autowired
    private ProductTypeTwoDao typeTwoDao;

    @Override
    public List<Product_type_two> twoTypeList(int typeOneId) {
        return typeTwoDao.twoTypeList(typeOneId);
    }

    @Override
    public Product_type_two getById(Long typeThreeId) {
        return typeTwoDao.getById(typeThreeId);
    }
}
